home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1995 #5 & #6 / Amiga Plus CD - 1995 - No. 5 and 6.iso / pd / daten / ispell / source / addons / xspell.shar / Makefile < prev    next >
Makefile  |  1995-01-23  |  1KB  |  48 lines

  1. #
  2. CC = cc
  3. LINT = lint
  4. # Sun
  5. #DEFINES = -DSELECT_BROKEN
  6. #INCS = -I/sig/quartz/Motif-1.1.2/lib
  7. #LIBES = -L/sig/quartz/Motif-1.1.2/lib/Xm -lXm -L/sig/quartz/Motif-1.1.2/lib/Xt -lXt -L/sig/quartz/Motif-1.1.2/lib/X -lX11
  8. # HP
  9. #DEFINES = -DSELECT_BROKEN -D_NO_PROTO -DDEBUG=1
  10. DEFINES = -DSELECT_BROKEN -D_NO_PROTO
  11. #INCS = -I/usr/include/Motif1.1 -I/usr/include/X11R4
  12. #LIBES = -L/usr/lib/Motif1.1 -lXm -L/usr/lib/X11R4 -lXt -lX11
  13. INCS = -I/usr/include/Motif1.2 -I/usr/include/X11R5
  14. LIBES = -L/usr/lib/Motif1.2 -lXm -L/usr/lib/X11R5 -lXt -lX11
  15.  
  16. CFLAGS = -g $(DEFINES) -I.. $(INCS)
  17. LINTFLAGS = $(DEFINES) -I.. $(INCS)
  18.  
  19. X11LIB=    /usr/local/lib/X11
  20. X11BIN=    /usr/local/bin/Xspell
  21.  
  22. #install=    install
  23. #
  24. # HP brain-death...
  25. install=    /usr/local/bin/install
  26.  
  27. Xspell: Xspell.o
  28.     $(CC) $(CFLAGS) -o Xspell Xspell.o $(LIBES)
  29.  
  30. Xspell.o: buffer.h
  31.  
  32. install:    install-app-defaults install-binaries
  33.  
  34. install-app-defaults:
  35.     cat app-defaults app-defaults.eng > foobar
  36.     $(install) -o root -g sys -m 644 foobar $(X11LIB)/app-defaults/Xspell
  37.     cat app-defaults app-defaults.fr > foobar
  38.     $(install) -o root -g sys -m 644 foobar $(X11LIB)/french/app-defaults/Xspell
  39.     rm foobar
  40.  
  41. install-binaries:    Xspell
  42.     $(install) -o bin -g bin -m 755 Xspell $(X11BIN)
  43.  
  44. release:
  45.     tar cf - README Makefile Xspell.c buffer.h app* look.c | \
  46.         compress > Xspell.tar.Z
  47.     shar README Makefile Xspell.c buffer.h app* look.c > Xspell.shar
  48.